package com.atguigu.jxc.dao;

import com.atguigu.jxc.entity.CustomerReturnList;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author dxt
 * @create 2025-07-17-16:36
 */
public interface CustomerReturnListDao {

    /**
     * 保存退货单
     * @param customerReturnList 退货单实体
     */
    void saveCustomerReturnList(@Param("customerReturnList") CustomerReturnList customerReturnList);

    /**
     * 查询客户退货单
     * @param returnNumber 单号
     * @param customerId 客户ID
     * @param state 付款状态
     * @param sTime 开始时间
     * @param eTime 结束时间
     * @return
     */
    List<CustomerReturnList> getCustomerReturnlist(@Param("returnNumber") String returnNumber, @Param("customerId") Integer customerId, @Param("state") Integer state, @Param("sTime") String sTime, @Param("eTime") String eTime);

    /**
     * 删除客户退货单
     * @param customerReturnListId 退货单ID
     */
    void deleteCustomerReturnListById(@Param("customerReturnListId") Integer customerReturnListId);

    /**
     * 修改客户退货单付款状态
     * @param customerReturnListId 客户退货单ID
     * @return
     */
    void updateState(@Param("customerReturnListId") Integer customerReturnListId);

    List<CustomerReturnList> getCustomerReturnListByTime(@Param("sTime") String sTime, @Param("eTime") String eTime);
}
